# from rest_framework import serializers
#
#
# class CommentSerializer(serializers.ModelSerializer):
#     user_name = serializers.StringRelatedField(max_length=150, read_only=True, label='用户名')
#
#     class Meta:
#         model =  OrderGoods
#         fields = ('comment', 'score')
#         extra_kwargs = {
#             'comment': {
#                 'read_only': True
#             },
#             'score': {
#                 'read_only': True
#             }
#         }
